package com.cskaoyan.bean.wx.goods.vo;

import com.cskaoyan.bean.category.Category;
import lombok.Data;

import java.util.Date;

/**
 * 创建日期: 2022/05/08 21:50
 *
 * @author JinLu Zhou
 */
@Data
public class FilterCategoryVo {
    Date addTime;
    Boolean deleted;
    String desc;
    String iconUrl;
    Integer id;
    String keywords;
    String level;
    String name;
    String picUrl;
    Integer pid;
    Byte sortOrder;
    Date updateTime;

    public void set(Category category) {
        setAddTime(category.getAddTime());
        setDeleted(category.getDeleted());
        setDesc(category.getDesc());
        setIconUrl(category.getIconUrl());
        setId(category.getId());
        setKeywords(category.getKeywords());
        setLevel(category.getLevel());
        setName(category.getName());
        setPicUrl(category.getPicUrl());
        setPid(category.getPid());
        setSortOrder(category.getSortOrder());
        setUpdateTime(category.getUpdateTime());
    }
}
